package com.gadgets.busi.bm03.process.impl.sql;

import com.gadgets.busi.bm03.common.Bm03Constant;
import com.gadgets.busi.bm03.common.dto.ExcelRowProcessDTO;
import org.apache.poi.ss.usermodel.Row;
import org.springframework.stereotype.Component;

import java.util.HashMap;

@Component
public class Row2SqlProcess extends AbstractRowSqlProcess{

    public Row2SqlProcess() {
        super(2);
    }

    @Override
    protected void realExcute(Row row, HashMap<String, Object> data, ExcelRowProcessDTO excelRowProcessDTO) {
        String tableCommentName = row.getCell(1).getStringCellValue();
        excelRowProcessDTO.getParamMap().put(Bm03Constant.SQL_GEN_TASK_PARAM_KEY.TABLE_COMMENT,tableCommentName);
    }
}
